package data_structure.linklist;

/**
 * \* User: Administrator
 * <p>
 * \* Date: 2020/9/18
 * <p>
 * \* Time: 15:11
 * <p>
 * \* Description:
 * \
 */
public class MyLinkList<T> {
    private Node<T> header = null;

    class Node<T>{
        T data;
        Node<T> next;

        public Node(T data) {
            this.data = data;
        }

        public void setNext(Node<T> node) {
            this.next = node;
        }
    }

    private void add(T data) {
        if (header == null) {
            Node<T> tNode = new Node<>(data);
            tNode.setNext(null);
            header = tNode;
        }
    }


}
